package com.zut.service.impl;

import com.zut.dao.CategoryDao;
import com.zut.dao.impl.CategoryDaoImpl;
import com.zut.pojo.Category;
import com.zut.service.CategoryService;

import java.util.List;

/**
 * @author 张晨
 * @date 2024/9/12 10:29
 * @desc
 */
public class CategoryServiceImpl implements CategoryService {
    private CategoryDao categoryDao = new CategoryDaoImpl();
    @Override
    public List<Category> selectAll() {
        return categoryDao.selectAll();
    }

    @Override
    public Integer deleteCategoryById(int i) {
        return categoryDao.deleteById(i);
    }
}
